package com.atguigu.vod.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 阿里云配置
 * acs客户端使用的是 OSS配置
 */
@Component
public class VoConfig {
    /***oss key*/
    @Value("${oss.vod.accessKeyId}")
    private String accessKeyId;
    /***oss KeySecret*/
    @Value("${oss.vod.accessKeySecret}")
    private String accessKeySecret;

    public static String accessKey;
    public static String accessKeyV;

    @PostConstruct
    public void afterPropertiesSet() {
        accessKey = this.accessKeyId;
        accessKeyV = this.accessKeySecret;
    }
}
